import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
import path from 'path'
export const ConfigSvgIconsPlugin = (isBuild: boolean) => {
  console.log('ConfigSvgIconsPlugin')
  return createSvgIconsPlugin({
    // Specify the icon folder that needs to be cached
    iconDirs: [path.resolve(process.cwd(), 'src/assets/icons')],
    // Specify the symbolId format
    symbolId: 'icon-[dir]-[name]',
    svgoOptions: isBuild,
  })
}
